<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* p:hover::first-line {
            text-decoration: underline;
        } */

        div:hover>p:nth-child(1)::first-line {
            text-decoration: underline;
        }

        div {
            display: inline;
            padding: 0px;
            width: 200px;
            overflow: hidden;
        }


    </style>
</head>
<body>
    <div>
        <p>一二三四五六七八九十<br>二二三四五六七八九十</p>
        <p>一二三四五六七八九十<br>二二三四五六七八九十</p>
        <p>一二三四五六七八九十<br>二二三四五六七八九十</p>
        <p>一二三四五六七八九十<br>二二三四五六七八九十</p>
        <p>一二三四五六七八九十<br>二二三四五六七八九十</p>
        <p>一二三四五六七八九十<br>二二三四五六七八九十</p>
        <p>一二三四五六七八九十<br>二二三四五六七八九十</p>
        <p>一二三四五六七八九十<br>二二三四五六七八九十</p>
        <p>一二三四五六七八九十<br>二二三四五六七八九十</p>
    </div>
</body>
</html>